﻿@model IEnumerable<AlmKickstart.Data.Project>

<div class="ContentSection">
	<h3>@ViewBag.ProjectType</h3>
	<table class="KendoGrid">
		<tr>
			<th>Name</th>
			<th>Description</th>
			<th>Start Date</th>
			<th>Due Date</th>
			<th>Status</th>
		</tr>
	@foreach (var item in Model) {
		<tr>
			<td>@Html.ActionLink(item.Name, "Edit", new { id=item.ProjectId })</td>
			<td>@Html.DisplayFor(modelItem => item.Description)</td>
			<td>@Html.DisplayFor(modelItem => item.StartDate)</td>
			<td>@Html.DisplayFor(modelItem => item.DueDate)</td>
			<td>@Html.DisplayFor(modelItem => item.Status.Name)</td>
		</tr>
	}
	</table>
	<p>
		@Html.ActionLink("Add New", "Create", new { projectType = ViewBag.ProjectTypeId, parentProject = ViewBag.ParentProjectId }, new { @class = "k-button" })
	</p>
</div>